<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta name="keywords" content="Free CSS Template, Website Templates, Music Websites" />
<meta name="description" content="Free CSS Template for Music Websites" />
<link href="${pageContext.request.contextPath}/resources/css/templatemo_style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
body,td,th {
	font-size: 14px;
}
</style>
<title>Online Movies - Book your hall</title>
</head>
 
<body>
<!--
This is a free CSS template provided by templatemo.com
-->
<div id="templatemo_container">
    <div id="templatemo_header">
    	<div id="templatemo_title">
            <div id="templatemo_sitetitle">Online<span>Movies</span></div>
        </div>
         <spring:url value="/logout" var="logout_url" htmlEscape="true" />
        <div id="templatemo_login" align="right">
        	Welcome <label>${username}</label> | <a href="${logout_url}">Log Out</a>
        </div>
    </div>
     <div id="templatemo_banner">
       	<div id="templatemo_banner_text">
            <div id="banner_title">Welcome To Online Movie Ticket Booking</div>
            <p>
            This is a site fot booking your ticket online
          </p>
            
    	</div>
	</div>
	<spring:url value="/registration" var="registration_url" htmlEscape="true" />
     <spring:url value="/" var="index_url" htmlEscape="true" />
      <spring:url value="/selectmovie" var="booking_url" htmlEscape="true" />
       <spring:url value="/hall" var="hall_url" htmlEscape="true" />
       <spring:url value="/movie" var="movie_url" htmlEscape="true" />
	<div id="templatemo_menu">
     	<ul>
			<li><a href="${index_url}"  >Main Page</a></li>
			<li><a href="${registration_url}">Registration</a></li>
            <li><a href="${booking_url}">Booking Details</a></li>
            <li><a href="${hall_url}"class="current">Show Details</a></li>  
            <li><a href="${movie_url}">Movie details</a></li> 
            <li><a href="subpage.html" class="lastmenu">Contact</a></li>        
        </ul>  
    </div>
      <form:form method="post" modelAttribute="hall" action="hall/insert">
   <div style="" align="center">
   				<div class="input_filld" align="left" style="width:500px">
   				<br/>
				<label>Name :</label> <input type="text" name="hallname" id="hallname"
						value="" /><label>${hallnameMessage}</label>
				</div><br/>
				
				<div class="input_filld" align="left" style="width:500px">
					<label>location :</label> <input type="text" name="location" id="location"
						value="" />
				</div><br/>
				
				<div class="input_filld" align="left" style="width:500px">
					<label>city :</label> <input type="text" name="city" id="city"
						value="" />
				</div><br/>
				
				<div class="input_filld" align="left" style="width:500px">
					<label>Phone/Mobile No :</label> <input type="text" name="phone" id="phone"
						value="" />
				</div><br/>
				
				<div class="input_filld" align="left" style="width:500px">
					<label>status :</label> <input type="text" name="status" id="status"
						value="" />
				</div><br/>
        
     
    <p><input class="button" type="submit" name="submit" value="Insert" /></p>
     </div>
    </form:form>
     
    <h2>List of halls and their details</h2>
     
    <table border="1" align="center" cellspacing="0">
        <tr>
            <th>Name</th>
            <th>Location</th>
            <th>city</th>
            <th>Phone/Mobile No</th>
            
        </tr>
         
        <c:forEach items="${halls}" var="hallVar" varStatus="status">
         
        <tr>
            <td>${hallVar.hallname}</td>
            <td>${hallVar.location}</td>
            <td>${hallVar.city}</td>
            <td>${hallVar.hallph}</td>
        </tr>
         
        </c:forEach>
         
    </table>
  
	<div id="templatemo_footer">
        <a href="#">Home</a> | <a href="#">Videos</a> | <a href="#">Audios</a> | <a href="#">Albums</a> | <a href="#">Artists</a> | <a href="#">Contact</a><br />
       
	</div>
</div>
</body>
</html>